package com.coderman.business.converter;

import com.coderman.common.model.consult.Consultant;
import com.coderman.common.vo.business.ConsultVO;
import org.springframework.beans.BeanUtils;

/**
 * 用于返回给前端的实体
 * 咨询信息管理
 * @author 文晓平
 * @version 1.0
 * @date 2023-1-4
 */
public class ConsultantConverter {


    /**
     * 转vo  ,用于返回给前端的实体
     * @return
     */
    public static ConsultVO converterToClassVO(Consultant consultant){
        ConsultVO consultVO = new ConsultVO();
        BeanUtils.copyProperties(consultant,consultVO);
        return consultVO;
    }
}
